package cn.xorange.commons.security.annotation;


import cn.xorange.commons.security.constants.InterceptConstants;

import java.lang.annotation.*;

@Inherited
@Documented
@Target({ ElementType.TYPE, ElementType.METHOD })
@Retention(RetentionPolicy.RUNTIME)
public @interface RateLimiter {

    long cycleTime() default InterceptConstants.WEB_ACCESS_LIMIT_SECONDS;
    int cycleCount() default InterceptConstants.WEB_ACCESS_LIMIT_COUNT;

}
